import { HelpService } from './help.service'
import { Resolver, Query } from '@nestjs/graphql'
import { CoreHelp } from './help.entity'
@Resolver('Help')
export class HelpResolver {
  constructor(private help: HelpService) {}
  @Query('helps')
  async helps(_, { type }): Promise<CoreHelp[]> {
    return await this.help.getHelpList(type)
  }
}
